//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;

namespace EntLibContrib.Resource.Instrumentation
{
	/// <summary>
	/// Provides data for the <see cref="ResourceInstrumentationProvider.ResourceAccessed"/> event.
	/// </summary>
	public class ResourceAccessedEventArgs : EventArgs
	{
		#region Fields
		private string key;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the key that was used accessing the resource.
		/// </summary>
		public string Key
		{
			get { return key; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="ResourceAccessedEventArgs"/> class.
		/// </summary>
		/// <param name="key">The key which was used to access the resource.</param>
		public ResourceAccessedEventArgs(string key)
		{
			this.key = key;
		}
		#endregion
	}
}